import type { Ref } from "vue";
import type { Message, role, status, reference } from "../../types/message";

// MessageContainer 组件暴露的接口类型
export interface MessageContainerExpose {
  messageList: Ref<Message[]>;
  addMessage: (
    content: string,
    role?: role,
    status?: status,
    index?: number
  ) => number;
  clearMessages: () => void;
  scrollToBottom: () => void;
  loadMessages: (messages: Message[]) => void;
  insertReference: (index: number, referenceData: reference[]) => void;
  insertRecommendedQuestions: (index: number, questions: string[]) => void;
}
